]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
mpris: Disallow media section on login screen
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 20 Feb 2020 15:40:04 +0000 (16:40 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 26 Feb 2020 17:45:33 +0000 (17:45 +0000)
The 'gdm' user is not going to run a media player, so there is no
point in allowing the corresponding section on the login screen.

All other sections are already disabled, so this is the only reason why
we end up with the message list instead of only showing the calendar.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/2241

js/ui/mpris.js

index bc98c0402e16acc09569a522332e806af987b266..9eabe4431f6ecb7a31ef31014baf625e3119ab07 100644 (file)
@@ -251,6 +251,10 @@ class MediaSection extends MessageList.MessageListSection {
         return !this.empty && Calendar.isToday(this._date);
     }
 
+    get allowed() {
+        return !Main.sessionMode.isGreeter;
+    }
+
     _addPlayer(busName) {
         if (this._players.get(busName))
             return;